package cn.zjweu.service.impl;

import cn.zjweu.mapper.MenuMapper;
import cn.zjweu.pojo.Menu;
import cn.zjweu.service.MenuService;
import org.apache.ibatis.annotations.Param;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class MenuServiceImpl implements MenuService {

    @Autowired
    private MenuMapper menuMapper;

    @Override
    public List<Menu> getAllMenus(@Param("commentType") String commentType, @Param("menuId") Long menuId) {

        return menuMapper.getAllMenus( commentType,  menuId);
    }
}
